// ICommand.h
#pragma once
#include <QObject>
#include <QString>
# include <QDebug>

class ICommand : public QObject {
    Q_OBJECT
public:
    explicit ICommand(QObject* parent = nullptr) : QObject(parent) {}
    virtual ~ICommand() = default; // 虚析构函数
    virtual void execute() = 0; // 执行命令
};